/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lanSimulation.tests;
import lanSimulation.internals.Printer;
import lanSimulation.LogManager;
import junit.framework.TestCase;
import java.io.Writer;

/**
 *
 * @author Administrator
 */
public class PrinterTest extends NodeTest{
    
    Writer reportwriter;
    Printer printer=new lanSimulation.internals.Printer("test",new LogManager(reportwriter));
    @Override
    public void testPrintOn(){
        StringBuffer buf=new StringBuffer();
        printer.printOn(buf);
        assertEquals(buf.substring(0),"Printer ".concat(printer.name_).concat(" [Printer]"));
    }
    @Override
    public void testPrintXmlOn(){
        StringBuffer buf=new StringBuffer();
        printer.printXmlOn(buf);
        assertEquals(buf.substring(0),"<printer>".concat(printer.name_).concat("</printer>"));
     }
}
